<?php
/**
 * User: 五哥派
 * Date: 2024/6/30
 * Tel(同WX): 17335592719
 */
namespace app\admin\model\store;

use app\admin\model\Base;

class Specs extends Base
{

    protected $name = 'store_specs';

    public function specsvalues()
    {
        return $this->hasMany('Specs_Value', 'specs_id');
    }

    public function getList($where = array())
    {

        return self::with(['specsvalues'])->where($where)->order($this->order)->paginate($this->limit, false);

    }

}